﻿#pragma once

#include "EditorPageAreaModel.h"
#include "EditorPageAreaManagerViewModel.m.h"


class REditorPageAreaManagerModel;
class REditorSplitableLayoutViewModel;


RCLASS(ExtraHeader="Widgets/Splitable/EditorSplitableLayoutViewModel.h")
class REditorPageAreaManagerViewModel : public RObject
{
    ROBJECT

public:
    void BindModel(TSharedObjectPtr<REditorPageAreaManagerModel> InModel);

    TSharedObjectPtr<REditorSplitableLayoutViewModel> GetLayout() const { return LayoutModel; }
protected:
    TWeakObjectPtr<REditorPageAreaManagerModel> Model;

    RFIELD()
    TSharedObjectPtr<REditorSplitableLayoutViewModel> LayoutModel;

};